package com.cn.por.util;

import java.io.BufferedOutputStream;
import java.io.FileInputStream;
import java.io.FilterInputStream;
import java.util.Arrays;
import java.util.LinkedHashMap;
import java.util.List;
import java.util.Map;

public class MapUtil {
	
	public static void main(String[] args) {
		
		Map<String,String> a = new LinkedHashMap<String, String>();
		String[] b =new String[] {"MDTRT_ID","MEDINS_SETL_ID","PSN_NO","PSN_INSU_RLTS_ID","PSN_CERT_TYPE","CERTNO","PSN_NAME","GEND","NATY","BRDY","AGE","ADDR","INSUTYPE","PSN_TYPE","INSU_ADMDVS","EMP_NO","EMP_NAME","EMP_TYPE","FIXMEDINS_CODE","FIXMEDINS_NAME","HOSP_LV","FIX_BLNG_ADMDVS","BEGNTIME","ENDTIME","MED_TYPE","RLOC_TYPE","ARS_YEAR_IPT_FLAG","PRE_PAY_FLAG","YEAR","REFL_OLD_MDTRT_ID","IPT_OTP_NO","MEDRCDNO","CHFPDR_CODE","ADM_DEPT_CODG","ADM_DEPT_NAME","DSCG_MAINDIAG_CODE","DSCG_DEPT_CODG","DSCG_DEPT_NAME","DSCG_WAY","DISE_NO","DISE_NAME","OPRN_OPRT_CODE","OPRN_OPRT_NAME","OTP_DIAG_INFO","INHOSP_STAS","DIE_DATE","IPT_DAYS","TRT_DCLA_DETL_SN","VALI_FLAG","POOLAREA_NO","CHFPDR_NAME","DSCG_MAINDIAG_NAME","ADM_CATY","DSCG_CATY","DISE_TYPE_CODE","UPDT_TIME","CRTER_ID","CRTER_NAME","CRTE_TIME","CRTE_OPTINS_NO","OPTER_ID","OPTER_NAME","OPT_TIME","OPTINS_NO","DR_CODE","SMDTRT_ID","DR_CARD"}; 
		for(String c : Arrays.asList(b)) {
			a.put(c, "");
		}
		Map<String,String> tt = new LinkedHashMap<String, String>();
		String[] d = new String[] {"YEAR","WARDAREA_BED","VALI_FLAG","UPDT_TIME","TTP_PAY_PROP","TTP_PAY_FLAG","TRT_DCLA_DETL_SN","TRAF_DEPT_FLAG","TEL","SUBS_CODE","SP_PSN_TYPE_LV","SP_PSN_TYPE","SAME_DISE_ADM_FLAG","RLOC_TYPE","RID","REGION","REFL_OLD_MDTRT_ID","QUTS_TYPE","PSN_TYPE","PSN_NO","PSN_NAME","PSN_INSU_RLTS_ID","PSN_CERT_TYPE","PREY_TIME","PRET_FLAG","PRE_PAY_FLAG","POOLAREA_NO","PAY_LOC","OTP_DIAG_INFO","OPTINS_NO","OPTER_NAME","OPTER_ID","OPT_TIME","OPRN_OPRT_NAME","OPRN_OPRT_CODE","NWB_FLAG","NATY","MEMO","MEDRCDNO","MEDINS_SETL_ID","MED_TYPE","MDTRT_ID","MDTRT_CERT_TYPE","MDTRT_CERT_NO","MATN_TYPE","MAIN_COND_DSCR","LMTPRIC_HOSP_LV","LATECHB_FLAG","IPT_OTP_NO","IPT_DAYS","INSUTYPE","INSU_ADMDVS","INHOSP_STAS","HOSP_LV","GESO_VAL","GEND","FPSC_NO","FLXEMPE_FLAG","FIXMEDINS_NAME","FIXMEDINS_CODE","FIX_BLNG_ADMDVS","FETUS_CNT","FETTS","EXCH_UPDT_TIME","ETL_DATE","ENDTIME","EMP_TYPE","EMP_NO","EMP_NAME","EMP_MGT_TYPE","ECON_TYPE","DTY_FLAG","DSCG_WAY","DSCG_MAINDIAG_NAME","DSCG_MAINDIAG_CODE","DSCG_DEPT_NAME","DSCG_DEPT_CODG","DSCG_CATY","DSCG_BED","DISE_TYPE_CODE","DISE_NO","DISE_NAME","DIE_DATE","DEDC_HOSP_LV","CVLSERV_LV","CVLSERV_FLAG","CRTER_NAME","CRTER_ID","CRTE_TIME","CRTE_OPTINS_NO","COP_FLAG","CONER_NAME","CLCT_GRDE","CHFPDR_NAME","CHFPDR_CODE","CERTNO","BRDY","BIRCTRL_TYPE","BIRCTRL_MATN_DATE","BEGNTIME","ARS_YEAR_IPT_FLAG","AGE","AFIL_RLTS","AFIL_INDU","ADM_DIAG_DSCR","ADM_DEPT_NAME","ADM_DEPT_CODG","ADM_CATY","ADM_BED","ADDR"};
		String[] e = new String[] {"年度","病区床位","有效标志","数据更新时间","第三方赔付比例","第三方赔付标志","待遇申报明细流水号","转科室标志","联系电话","","特殊人员类型等级","特殊人员类型","同病种入院标志","异地安置类别","数据唯一记录号","","转诊前就诊ID","编制类型","人员类别","人员编号","人员姓名","人员参保关系ID","人员证件类型","妊娠时间","早产标志","先行支付标志","统筹区编号","支付地点类别","门诊诊断信息","经办机构编号","经办人姓名","经办人ID","经办时间","手术操作名称","手术操作代码","新生儿标志","民族","备注","病历号","医药机构结算ID","医疗类别","就诊ID","就诊凭证类型","就诊凭证编号","生育类别","主要病情描述","限价医院等级","晚育标志","住院/门诊号","住院天数","险种类型","参保所属医保区划","在院状态","医院等级","孕周数","性别","计划生育服务证号","灵活就业标志","定点医药机构名称","定点医药机构编号","定点归属医保区划","胎儿数","胎次","入仓时间","","结束时间","单位类型","单位编号","单位名称","单位管理类型","经济类型","是否脏数据(0否1是)","离院方式","住院主诊断名称","住院主诊断代码","出院科室名称","出院科室编码","出院科别","出院床位","病种类型代码","病种编号","病种名称","死亡日期","起付线医院等级","公务员等级","公务员标志","创建人姓名","创建人ID","数据创建时间","创建机构编号","伴有并发症标志","联系人姓名","缴费档次","主诊医师姓名","主诊医师代码","证件号码","出生日期","计划生育手术类别","计划生育手术或生育日期","开始时间","跨年度住院标志","年龄","隶属关系","所属行业","入院诊断描述","入院科室名称","入院科室编码","入院科别","入院床位","联系地址"};
		List<String> dd =Arrays.asList(d);
		List<String> ee =Arrays.asList(e);
		for(int i=0;i<dd.size();i++) {
			tt.put(dd.get(i),ee.get(i));
		}
		Map<String,String> resultMap = new LinkedHashMap<String, String>();
		for(String key : a.keySet()) {
			for(String olKey : tt.keySet()) {
				if(key.equals(olKey)) {
					resultMap.put(key, tt.get(olKey));
				}
			}
		}
		System.out.println("we");
	}

}
